import request from '@/utils/request';

// 查询项目列表
export function apiProjectManageList (query){
  return request({
    url: '/project/manage/list',
    method: 'get',
    params: query
  });
}
//新增项目
export function apiProjectManageAdd (data){
  return request({
    url: '/project/manage',
    method: 'post',
    data: data
  });
}
//修改项目
export function apiProjectManageUpdate (data){
  return request({
    url: '/project/manage',
    method: 'put',
    data: data
  });
}
//删除项目
export function apiProjectManageDelete (projectId){
  return request({
    url: '/project/manage/'+projectId,
    method: 'delete'
  });
}
// 通过角色获取人员
export function apiSystemUserListbyrole (query){
  return request({
    url: '/system/user/listbyrole',
    method: 'get',
    params: query
  });
}

// 项目上传接口 - 批量上传
export function apiProjectUpload(data) {
  return request({
    url: '/project/manage/upload',
    method: 'post',
    data: data
  });
}
